package com.miyake.dsp.osa.method;

public class NormalizeX {
	
	public double[] getNomalizedOriginal() {
		return nomalizedOriginal;
	}

	public double[] getNomalizedInterpolate() {
		return nomalizedInterpolate;
	}

	private double[] nomalizedOriginal;
	private double[] nomalizedInterpolate;

	public NormalizeX(double[] original, double[] interpolate) {
		
		double s = original[0];
		nomalizedInterpolate = interpolate.clone();
		nomalizedOriginal = original.clone();
		for (int i = 0; i < interpolate.length; i++) {
			nomalizedInterpolate[i] -= s;
		}
		for (int i = 0; i < original.length; i++) {
			nomalizedOriginal[i] -= s;
		}
	}
	
}
